Moved main activity into activities package
creating database in model
init databse and destroy in main activity