fixing goals to update db