added strict coverage
refactoring postgres