use return(DB_...) instead of assigning err = DB_... when possible.
Attach a file by drag & drop or click to upload