Updated db tables to include rating