Fixed a smal bug in the GUI. The DB now returns a JSON object.