setup user repository sql