commiting database models and contex