Add script for building the db