add uoload template
upload function
add upload function to database