Use unix_timestamp in db