SQL scripts for online course