Added the wrap-connect-db to reconnect to the database if the connection
does not exist and to add the error in the request if the app cannot
reconnect.