Upload data to database.