setup models and database