Implement node side grid tile SQL generation