postgresql, postgis

tutorial: http://rpubs.com/dgolicher/6373
compute the mean and save it