Updates database for scheduling