Add support for '*' database name and support for table parameter in pillar

Hello! I've added support for '*' database name and support for parameter 'table' in pillar.