Save goals to database