Adding script to auto-build the database