Fixing my postgres stupidity.