Fixed psql backend to use json type