Change in ovirt-engine[master]: db: add a common function for index creation