passing dbPath to the controller