added support for external DB implementations