title: Correct way to use databases in Windows 8 and Windows Phone 8
body: <p>I am currently working on a Windows 8 app which needs to store some tables. Currently, I am using XML files with XDocument classes to solve the purpose. It employs <code>save</code> and <code>load</code> methods using <code>GetFileAsync</code> and <code>CreateFileAsync</code> etc. Moreover, there <code>save</code> and <code>load</code> methods are called by different events. However, whenever there are repeated calls, an exception is thrown telling me that file access is denied. Expected behavior - <a href="https://stackoverflow.com/questions/13045504/i-get-system-unauthorizedaccessexception-while-loading-xml-from-disk/13048669#comment17742695_13048669">more details here</a>! While there are dirty methods to avoid this (like using locks and such) I am not very happy with the results. I'd rather prefer databases. Moreover, I am planning to write another app for Windows Phone 8 (and possibly a web version) which will make use of the data.</p>
  
  <p>They have been repeatedly saying that Windows 8 is cloud based. Now the question: What is correct way to store my data? XML seems right but is has problems I mentioned above. What would be ideal cloud based solution involving Windows 8, Windows Phone 8 and possibly Azure? All I want is to store tables and make those accessible.</p>
  
  <p>Sorry if the question seems unclear. I will provide information if required.</p>