adding latest key to db