Fixed upload attachments to DB. Sidebar hide.