build script for db installation