add database index to users