Can someone point me in right direction on integrating freeswitch with mysql ? 
I am trying to store all configuration files in mysql just like asterisk does. 
I used this sample config how I get it to use mysql database and how I can get gateway to register with voip.ms
include>
  <gateway name="voipms">
    <!-- Replace the values below with your Voip.ms username and password.  Even if you use an IP-based sub-account, FreeSWITCH likes values for the username and password -->
    <param name="username" value="100XXX" />
    <param name="password" value="PASSWORD" />
    <!-- This gateway could be different depending on which switch you are on -->
    <param name="proxy" value="sip.us4.voip.ms" />
    <param name="realm" value="sip.us4.voip.ms" />
    <!-- This should be set to "false" for IP-based accounts, or "true" for registration based -->
    <param name="register" value="false" />
  </gateway>
</include>