creates model, collections, init db connection