Refactor database management into a new plugin