Improve contactdb.