test bad db connection details throws error