added upload to database