make order of arguments passed to db operations uniform