Fix DB model, in particular MariaDB support with MYSQL jdbc driver