Adds the module states SQL constant values. Fixes #118

See #118