Map database primary keys