Updated image gallery to use database and added tagging system