Added Database working class

We'll have no idea if anything bad happened