create scheduler, fix db.