Added MySQL support as well as external database support.