Changed DbType to SqlDialect. Code refactoring.
Added dbhelper.PrepareSelect() to prepare standard select queries