updates dependencies
refactors db/* to model+provider