Added MySQLi database abstraction layer