Snippets and fixes

Another SQL helper method, interactive snippets (dashboard not done yet)