db: Minor refactors
Bump release version for '0.4.5'
db: Automated indentation fix

Courtesy of ./scripts/indent.sh.
db: Encode record IDs in base64
Merge branch 'release/0.4.5'