use dateutil to make codes look better (performance unknown, but i dont care)
return mysql error back to caller in save_meta for better logging
use logger() to avoid messy log codes around, deal with signals properly