switch to postgres, handle all the printcore callbacks