checkPush and queryDatabase now stores tag attributes