// Get the Zend Framework loader setup
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
// Setup routing of model autoloaders
$loader = new Zend_Loader_Autoloader_Resource(array('basePath' => $apppath . '/application/', 'namespace' => 'Application'));
// Name, path, namepsace
$loader->addResourceType('model', 'models', 'Model');
// Get our config file
$config = new Zend_Config_Ini($apppath . '/application/configs/application.ini');
Zend_Registry::set('config', $config->production);
// Because our models need it this way
// Get the messages model
$message = new Application_Model_Message();
logWrite("----------------------");
logWrite("BirthdayUpdate Start: {$timestamp}");
$message->selectbd();
logWrite("BirthdayUpdate End: {$timestamp}");
logWrite("\n------------------------------------");
// Set up our current timestamp
$timestamp = date('Y-m-d H:i:s');
// Log the start of this read
logWrite("####################################");
logWrite("Begin batch send: {$timestamp}");
logWrite("------------------------------------");
if ($message->queueBirthDayMessage()) {
    logWrite("Birth day messages are queueing.");
} else {
    logWrite("Birth day messages can not be queued.");
}
// Set up our current timestamp for closing out
$timestamp = date('Y-m-d H:i:s');