Added DataBase class to handle all database queries.

Added databse initialisation function