updated build_database.sh