Postgresql testing

Pull request to address #2