Changed: Use constants for installer version numbers.
Changed: Remove USER_AGENT column from SESSIONS table.
Changed: Perform attachment_dir check before upgrading database.
Changed: Trim the attachment_dir and remove trailing slash.