change to local database