Make sqlite query return an empty table rather than nothing