Recover of Mysql and Oracle - taken from https://github.com/tomjenkinson/narayana/commit/b9a578c3ff8275dbc729716a97bb2c3cde225437