Fix a database record loading bug.
Add support for dynamic components.