Backend updates

admin/index.php now asks for SQL settings if the
admin/config/db.config.php is empty or doesn't exist.

Also made $dbh public so we can use it as a global later.