Resolve PDO errors and fix primary key on acp_settings