Update to ensure lowercase query by using postgres LOWER()