implemented --no-db to save some runtime