[#67] Use long for surveyInstanceId
[#67] Refactor ConstantUtil references in the Database

* Move Database constants to the DB file
* Update references
* Clean up unused constants