Initialize database and models