fix server, switch to postgres, plus other tidy up and README