API: Allow additional methods to be passed to extendedCan

This extends extendCan so can methods can take additional args.
Allow DB::connect() to specify the connection name.
Close the mysqli connection when deleting the class.