Capitalize query (postgres issue??)