functioning file uploader going to database