first changed for acepting a DB backend for keys

add a new salt.db and then add some basic action to use key from db