crud functionality with postgres and node