Unixtime and Mysql convenience methods

Added some convenience methods that I would use quite often.