Add more options for the SQL generation, add a possibility to process the results fetched from the database further, add functions to process queries so RegExps are not repeated. Use the new functions to process queries for BibliographyOnSRU and GlossaryOnSRU, use start and maximum settings. Change GlossaryOnSRU.php to use the common infrastructure.