Fixed issue with sqlite query returning a list of one object