Added session.flush() to all dao operations.