Added Database class to handle all database connections and database operations