rating bugfix, assoc sql queries and images&tags in entrylist

Fixed a bug where the ratingcount was returned multiplied by the number
of images to the entry

changed sql queries to return associative arrays

images&tags are now returned when querying single entries as well as
when querying multiply entries