参考: http://blog.leanote.com/post/zhangyue/%E5%88%86%E5%BA%93%E5%88%86%E8%A1%A8%E7%9A%84%E5%88%86%E9%A1%B5%E6%9F%A5%E8%AF%A2
源码:https://github.com/Xieweikang123/SeparateDatabaseTable