Update Database class to utilise mysqli instead of mysql.