Created a database class, Created constructor for the database, Implemented the openConnection function