Final testing with db input