adding dbclass functions