Fix sync issue with postgres & sqlite serial keys