Created models and simple database operations