Switching database to localhost