Added all basic DB functionality needed to test the prototype