set models and database