move all DB operations into poll(). Do not call rollback for timed out
contracts