Use db_select method to handle database prefix properly