Allow $ in SQL identifiers

Allows $ to be used in SQL identifiers. Fixes #164.