setup posgres plugin, play with json conversion