Added an database class to handle MySQLi functionality.