wrote a general sql query method, put in is_number, pagewidth handling and command. Need to fit in new db_query() command
renamed db_query to quick_query
updated code with quick_query method, now to test