added mysql and unixtime convenience methods