New scheduler

This version contains a working copy of the new scheduler for chimera. It implements a series of modifications to the previous versions, specially concerning the database structure.