Implemented scheduler and linked to database, basic testing works, maybe needs stress testing