How to Uninstall/Reinstall a custom module whithout losing the content?
You can update your database with 


  hook_update_xx


if your module define hook_shema

https://www.drupal.org/docs/8/api/update-api/updating-database-schema-andor-data-in-drupal-8