adjust mysql query arguments to match modified variable names