More SnsysDatabase work, Writing single layer databases is almost complete.