example code for upload tutorial data
chages to work with database