Added check for mariadb and a remote database