Add newObject() and attach() to TableGateway, refactor DB some