use db_query rather than db_select