Resolve table name based on generic type name not class name

Hi,
Here is simple fix, when resolving table name in DBTable we want to get it from generic type name not class name itself.