Added index, main controller, and database config