save timestamp in database not string