test with external db