added back the database indices