fixing db rollback