queries: run to_database_format() on names taken in as parameters