added user indexing to database