fix deprecated mysql_list_dbs

as of PHP 5.4.0. Relying on this function is highly discouraged.