added missing sql stuff
user pages progress