db:controller renamed to db:entity, added tests