add total entries to database listing