Added postgre test code