woops error in db class, now changed