fix DatabaseModel count with WHERE clause typo

There was small typo - no space between table name and WHERE keyword