Updated controller to reflect new DB table names.