Added insert method to dbclass