Added a function to databases to add a key.