Registered Wikibase\Repo\Database classes and added test for FieldDefinition

Change-Id: I97f40f5b51f6a39e9deaa286b5fdcd4f9b7498a7
Merge "Registered Wikibase\Repo\Database classes and added test for FieldDefinition"