Modify the attachment inserting query

Signed-off-by: Suki <suki@missallsunday.com>
Edit on Post.template.php

Signed-off-by: Suki <suki@missallsunday.com>
Edit Post.php to create the expire_date key in $attachmentOptions array

Signed-off-by: Suki <suki@missallsunday.com>