updates get_sch_for_agent() to use new schedules table
checks if connection exists before closing in index.php
frees up memory from mysql queries
frees up memory from more mysql queries
changes mysqli_fetch_array() into mysqli_fetch_assoc() in form_val_unique()
creates mysqli_confirm() and replaces separate query confirms
changes mysqli_fetch_array() into mysqli_fetch_assoc() in get_subject_by_id()