Added db rollback on 500 errors