Added Database working class

but why use tricks where problem can be solved with several lines of code?