rewrite dbclass in oop
test