Fix Database structure for rating