Converted IndexContent to use database.