reworked repository to allow easier integration into other databases