backends: remove clang warning
metadb: remove clang warning
history: fixed return value handling