check point with refactoring logging and db connection