What are you thinking for the Database Layer?
Right now it's kind of a mess, with a lot of outdated drivers.
It seems like the best course of action would be to use PDO as the starting point, and add back drivers around that.
At the very least, you're going to have to remove the original mysql driver, as the mysql_ family of functions is finally gone from PHP 7.