add database save function to robot.java