Created a constructor for my database, and functions within my Database Class

I made a constructor for my database, and I also made 3 functions within my database class, one that opens a connection, another that closes it, and a third for a query.