Update tables in db_main.sql
Add constants to sequence tables
Add function to verify which lesson are available for the user. -refs #7220