Init models and database