title: Mobile app security code verification
body: <p>I am planning to design an application that will offer an alternative security process that users can optionally add to their accounts.</p>
  
  <p>My idea so far is to get the phone number of the mobile the user has downloaded the app for, then link the website account with the phone number, only one account per unique phone number.</p>
  
  <p>Obviously, to improve the security the code will be randomly generated every 30 seconds. Therefore if the user wanted to login, the website -or- app would need the security code from the mobile the account is linked to.</p>
  
  <p>One thing that I am stuck on is how I would make the app and website talk to each other and keep each constantly updated so the app would have a new security code for every user registered every 30 seconds (as long as they have the option enabled).</p>
  
  <p>The security code would be stored in the database, (let's say we have at least a few thousand users with the option enabled) the amount of updates to the database would surely overload the server?</p>
  
  <p>How would I go about doing this, and optimising the 'algorithm' for the server handle it.</p>
  
  <p>Also, would a more 'powerful' database server, such as MariaDB be better in this instance than say, MySQLi, SQLite, etc.</p>
  
  <p>Regards</p>