Data base assignment and codes