Recover db cirruption

Signed-off-by: Matt White <matthew.white@fclonline.com>