Adding optional database argument, printing out stderr by default.