Add Postgres error handling for when DB is stopping

Oh Postgres. You and your many many different types of error responses.