Made the database connection public to be able to forward it to extensions.
Converted the _SMS_STATIC_NUMBER to an array named _SMS_STATIC_NUMBERS, a temporary workaround.