Convert run to postgresql