Schedule now writes to DB, untested implementation of endpoint to be
used by the scheduler