Bug fix: don't do modulo by zero if the database contains a blank key.