A bit of code cleanup; on a +Hangout

Fun no?

:neckbeard: 
Honestly I would do this in the database layer, not in the application code.
Might use [`ilike`](http://docs.sqlalchemy.org/en/latest/core/sqlelement.html#sqlalchemy.sql.expression.ColumnElement.ilike) if I were using SQLAlchemy.

There should be a way to do it with psycopg2 as well, since its a Postgres thing:

> The keyword ILIKE can be used instead of LIKE to make the match case insensitive according to the active locale. This is not in the SQL standard but is a PostgreSQL extension.

[source](http://www.postgresql.org/docs/9.3/static/functions-matching.html)