prepare for possibility of postgres query