Added basic sceleton for database managment. Added a lot of comments to classes