sqlite fix single queries