This function finds the value for key in database. If there is no corresponding value, default is returned (
nilif default is omitted).
This function maps function over entries in database, calling it with two args, each key and value in the database.