making goals update db on completion + tests