Working on goals view, going well. Db function ready