Retrying to connect to the DB up to 10 times before giving up.
Database updates table.