fixed compilation issue
fix to db name, and an error with multiple params in a where statement. the table structure now correctly creates typeconverted types in table definition as well