Add returning to dbtable, more tests