MariaDB and SQLite bug fix