updated timestamp in order. Added getOrder in database