[core] rollbacking an error on db class calls