Adds models to database