Fixing bug in database::add_database_names() which wasn't parsing quotes in queries properly