added name function and new database destination