Added a launch file parameter for saving to the database and fixed a bug.