working postgres collection and models