workn on db and models