Added a database class that will connect to database