bugfix on key tweeter query
ignored database name + created template for database