mysql implementation of mapping versus id with medici id.