Basic commaline parsing and lookup in DB