added image and swf upload endpoints and db translation