Query table and model

Just register last executed queries
Merge pull request #6 from RodrigoJimmy/region-controller

Query table and model