support external database