sqlite fix for empty db entries