Implemented upload & DB insert