changed the model to accept array (only works in postgresql)