added enabled column to scheduling table, updated sql definitions