Minor fixes and added MySQL/MariaDB support

Added MariaDB/MySQL support and fixed minor bugs in the Postgres
beginner interface