initial stabs at database system