Databricks is prepared to go public "when the time is right," CEO and co-founder Ali Ghodsi told CNBC in an interview.