added documentation to database connector
Improvement to scheduling by using average degree limit for third slot