Updating and finalizing the setup_db script