making good progress with rest, removed 'earnUserId' column from dbs