You do not need $result here. Try not to have extra code. Plus those queries do not suppose to return anything anyway.
Please clean you code below to address this.

You always want to add as less code as possible because it makes it easier to read and understand to any other developer. Then it would decrease chance of an error because what if I DO have $result somewhere before this queryDB then you would overwrite it for no reason.