set up db and models and collections