I'm just curious if anyone has done this before. I'd like to use the database file generated by updatedb as sort of a "cache" for a searching mechanism, but without having to make any external calls to 'locate'.
Try having a look at this file:
https://github.com/WojciechMula/locatedb
I believe it does what you are looking for.