index users in database by username