Use lower case column names

Ensure that all appearances of column names are lowercase in order to be
compliant with PostgreSQL.