temporary fix for fatal error which appears if mysql engine is selected at the backend
Added some logs and minor comment cleanup
Merged d18641be544795d154653d194de5f230f1bce3fc from master branch