Corrected controller
After explicitly configuring db, no need for this