Added Database class

For easy handling interaction between database. Using seperate methods
for each query.