data model of db query tool