added statistics for amount if media items stored in database