bd key database local or online