Rebuild with postgresql