Removed DB connection variable from the classes for preventing PDO serialize errors.