custom patch to use postgresql for rails