refactoring tests
adding db script