Added function to retrieve SMS ids stored on the server