make entities-from-database work at command-line