addedd params for queryDBresults(), and added at_field_flags to replace mysql_field_flags