Add fail safe to DB.
Run unit tests