Read scheduling from database.