setting up models and db