Moving db layer to repositories module. Added reference from catalog to repository