Fixed the assignment of LC_COLLATE, LC_CTYPE and template db to database
instance on DatabaseWidget
Catalog class checkpoint.