Database remake in case of failure