Removed unused queries logging in test
Added support for easy implementation of single table inheritance (thx to mooncube)