set lesson time from database