Add sqlite joins materials