script for running tests on db