Fixed save operation for EntityDAO and closing all statements.