refactors grunt database