add the script to save lessons to the database