DB entry now functional. writing file upload script