To build rb.db locally, clone the repository and run build.sh script. To import only Rebrickable tables in rb.db run build.sh -rbonly. Documentation is better to be read on GitHub Pages: https://ojuuji.github.io/rb.db/