added some util sql queries, removed unused models