Fixed a few errors

* Postgres needed index on a few columns
* Fixed queries to work with postgres and sqlite
* Officership/Membership no longer requires an end_date