Adds models and database functions