getting generated key through column name