Created DAL class and moved corresponding methods from Schedule.java.