Fix the PostgreSQL mixin initialization
Cast the config to dicts, add connection error handling