Revert "Revert "Added MySQLi framework""

This reverts commit 2a9b397fb0b988e3d9602989f463cfaa0fa015b2.