Added code with model and console app to manage db