small refactoring
change parsing with pg array parser