Added additional safegaurd against db issues in express handler.