code refactoring
no point enumerating current database for --count on some DBMSes