Got Diff database insertion & reading working, implemented tests