idea for external file db callback