Got dbGetCCDInput working