Refactoring database successful