fixed the insert_to_db file, to insert data into database via url.