Added index support to database.