fixing db issues
test