refactorings db