dbcheck: Script swallows input when given a carriage return