Partial completion of database framework.  Not complete.