I wouldn't suggest directly editing the db although you always could using something like pgadmin. But the risk is that you could change something in the DB that doesn't get updated in your graph store or elasticsearch indices, therefore potentially breaking something. So using an API to update data is definitely the recommended approach