completely re-implemented the DAO for use with JSON instead of directly to MySQL