updated database class.

tables included (shown in er model
-workspace
-userinfo
-project
-settings
-sharedworkspace
-projectcomment
-sharedproject