More tests for db/table manipulation