adds closure to stop querying db after seven-count on client connect