Cont'd SQL backend: dirty concept and up operation refactoring