Layer for migration from ext/mysql to ext/mysqli