Creation of NamedQueries - needs to be be fixed for data fetching