Towards an ab initio covariant density functional theory for nuclear structure