Add index on userid to transaction database