Reworked schema support so that a wrapping DB struct is no longer needed.