Updated addtodb.js and minor name changes