changed client to local database