Database fixes.
Small fix.