switch db to local