changed upload add to DB function (Dynamic), for better performance.