sql queries, update about, and polygon-pattern var