Implemented the Component Repository.
Added some new DB 'tests'