main alarm and config file

changes to main python alarm script accessing /config/db.php