const.c-related improvements.

Taking care of symbols.
Adding const qualifier where applicable and easy. This is first pass.
Taking care of symbols defined in lanclicz.c
Taking care of symbols in db.c. Second pass.
Taking care of symbols defined in handler.c
Taking care of symbols defined in ssm.c