You can use the -U option (--database-root PATH)
updatedb -l 0 -U /home/user/music -o /home/user/databasefile
-o writes to the output file
-l 0 makes that you can read it, otherwise it is only accessible for locate
Then you can then use it like: