change sqlite for postgresql