Fixed rating dao method rolling back transaction in wrong circumstances.