Design of a framework for database indexes