Made local to plocal db type and fixed a test case