Fixed bugs in creating database, dealing with refreshing the view of Fragments when the content of database gets changed (uff, what a nightmare) - seems to work.