test with db