port of database code to mysql
Merge branch 'master' of https://github.com/NGPVAN/dnorml