Fix for postgresql schema incompatibility

resolves livingsocial/rearview#19