Add RDF module
Begin adding database-based queue module.
Modularise existing code.
Add basic queue retrieval