sqlquery

trying to subtract row in db from local parameters.