Database timeout
When using pg client, vercel-postgresql kills the conneciton after 15 minutes. The solution is to use a pg pool, see https://stackoverflow.com/questions/48751505/how-can-i-choose-between-client-or-pool-for-node-postgres/48751665#48751665