Very slowly migrating to postgresql