As we've gotten some more understanding of interfacing with postgres, cometindex could use a refactor, on the following points:
- Use
#[derive(sqlx::Type)], FromRow, etc. to ease boilerplate of reading state.
- Pare down the exported interface to make it clearer how to use the library.