debug of nonworking sqlite query