modify database locally