check local + live db connection