Associations SQL: separated simple from associations' serializations code