Database interface added aswell as the fake database for the tests. Just need to do the test now.