External script to query MariaDB sometime return an error