getDBStruct function addd