writing to db.cfg
removed alerts
chmod doesn't seem to be doing anything, maybe on linux