Changed DbRepository to MdsRepository and moved to common module