Adding a script function to create the blocks database