Improved DB env config and added nested transaction support to engine.