Fixed bugs in sql file for creating database content.
Added function to query a set auf getRating command.