Restore original state of database