Return a db error if the connection failed