New table naming convention migration

Based on [gist](https://gist.github.com/stefanfoulis/c6b393d05751314addca) used in cmsplugin-filer.