Fixed some bags and added updating database

-(fixed) bag in Calendar activity, when take "back" you had error
-(new) now database can updating