trying to get key data to get put in database