Shared/database: more const declarations.