vince, these are changes which have basic db stuff working to a point. Probably we should
freeze a branch that uses the old gallery and then use this as a new branch which will use new db