Fixed not closing statement in some methods for internal saving entities in some dao implementation.