Added prototypes to the 4 queries