Created some statement retrieval queries.