Modify DBService use action delegate instead func delegate