Added ratings. Connect to sql with pseudo-elegance.