Adding sql script for tables of monitor.py