Added retrieval capability to the mysql wrapper