changing db to localhost