configurable db name, repository like method
fix typo
fix typo and missing save call
refactor to make it shorter