Update driver to match new function signatures in 1.8
Created by: jlfranklin
After testing the database date API patch against, Backdrop, a number of fixes were made to the API, including swapping the order of some parameters. The PostgreSQL driver needs to be updated to match the API.