server_make_query function

Make an SQL query from a list of query parameters