switches to new db schema

uses user_id and repo_id as keys