Not closing more cursors than we should
Fixed mysql tests
Fixed broken test for StatementDecorator
Reverting change that makes postgres cry