simplify SQL metadata storage