upload functionality now names uploaded frames (locally and in db) according to its primary key when uploading to mysql