made data retrieval asynchronous
use JSON to retrieve data; added json sample database
refactored: question creation function injected in questionfactory