Revert "Removed pgsql active record adapter."

This reverts commit 49d1d37018adc40aa6e56e8fc2565e506af8e9e7.