Create a generic class to store all queries

ease you guys coding