Setup models and the database