modified angular to use a local db