Inbox service

Sql generators are not part of the public interface. Consider using:
```ruby
private_class_method :construct_count_sql
```