Bug56: Running code analysis finishes with 30+ warnings

Running code analysis finishes with 30+ warnings. See #56.

Most of the warnings/fixes are related to coding conventions. Nothing really major is being fixed. However, since we are also fixing several schema conventions, this will require us to delete the existing databases (OK for now but we will have to provide migration paths once we start deploying to production).