initial api test with db connection