Fix PostgreSQL (yay for checking data types!)