Removed relational model and replaced with metadata model where needed.

Updated related code and tests.
Yes, I get that SQLite isn't done yet. We should have a work item for that--can you reference the work item in the code. If we don't have a work item then it would be good to create one.