sets up database, models, and initial routes