api server now handles postgres exploding a bit better